#!/bin/bash
if [ ! "$SECRET_KEY" ]; then
	  SECRET_KEY=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 50`;
	    echo "SECRET_KEY=$SECRET_KEY" >> ~/.bashrc;
	      echo SECRET_KEY=$SECRET_KEY;
      else
	        echo SECRET_KEY=$SECRET_KEY;
fi  
if [ ! "$BOOTSTRAP_TOKEN" ]; then
	  BOOTSTRAP_TOKEN=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 16`;
	    echo "BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN" >> ~/.bashrc;
	      echo BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN;
      else
	        echo BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN;
fi
